<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="toolbar/jquery.js" charset="utf-8"></script>
<script type="text/javascript">
	var esd_jq = $.noConflict(true);
	var esd_tool_iframe=null;

</script>

</head>
<body>
	<button onclick="rJs();">点击写入远程代码</button>
	<iframe id="iframe" width="100%" height="2000px"></iframe>
</body>
<script type="text/javascript">
	var href = document.location.href;
	var _start=href.indexOf("mangren.com/");
	var iframeSrc=href.substring(0,_start+11);
	var http = href.split("//");
	var params = http[1].split(".");
	var url="https://gitee.com/snailzhang/wzajs/raw/master/dev/";
	var jsFile=url+"esd_wza_Script_"+params[0]+".js";
	var $iFrame = esd_jq.("#iframe");
	$iFrame.prop("src", iframeSrc);
	$iFrame.load(function() {
		alert("加载完毕");
		rJs();
	});
	
	var rJs=function(){
		esd_tool_iframe = esd_jq.(document.getElementById('iframe').contentWindow.document.body);
		esd_tool_iframe.append("<script charset='utf-8' >"+
				"$('*').focus(function(){"+
					"$(this).css({'outline':'2px dashed red'});"+
				"});"

		
		"<\/script>"
		);
	}
</script>
<!-- 
<script type="text/javascript" charset="utf-8" src="https://gitee.com/snailzhang/wzajs/raw/master/jl_40/15_jtyst.js"></script>
 -->
</html>